import xmlrpclib
chat = xmlrpclib.ServerProxy("http://localhost:9999")
print chat.Register("Alex","123")
print chat.Login("Alex", "123")
print chat.WhoIsIn()
print chat.Message("Alex", "123", "Hello world!")
print chat.CreateRoom("MyRoom", "", True, "Alex", "123")
print "GetRooms: ", chat.GetRooms("Alex", "123")
print chat.EnterRoom("MyRoom", "", "Alex", "123")
print chat.WhoIsIn("MyRoom")
print chat.Message("Alex", "123", "Hello world!", "MyRoom")
print chat.Logout("Alex","123")
